<%--
    Document   : Pessoas
    Created on : 20/10/2009, 22:38:05
    Author     : BernardoFS
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title>Arghhh !</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
	</head>
	<body>
		<div id="topo">
		   <form method="post" action="/ArghhhWeb/ir_para">
				<div id="login" class="login">
					Login: <input id="login-text" type="text" name="login" size="14" />Senha: <input id="login-text" type="password" name="password" size="14" />
				</div>
				<div id="botoeslogin">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input  type="submit" name="botao" value="Entrar" /><br/>
					<a href="#">Esqueceu sua senha?</a><br/>
					<a href="/ArghhhWeb/ir_para?pagina=Cadastrar">Cadastre-se Agora</a>
				</div>
			</form>
			<div id="loginb" class="login">
				Buscar:<input  type="text" id="busca-text" name="Cbuscar" size="40" maxlength="128" />
				&nbsp;&nbsp;
				<select id="campos" name="tipo">
				<option value="tudo">Todos</option>
				<option value="usuario">Usuário</option>
				<option value="banda">Banda </option>
				<option value="ntegrante">Integrante</option>
				</select>
				&nbsp;&nbsp;
				<input type="button" name="enviar" value="buscar"/>
			</div>
		</div>
		<!-- Fim do Cabeçalho -->
		<div id="menu">
			<ul>
			  <li>&nbsp;&nbsp;&nbsp;</li><li><a href="/ArghhhWeb/ir_para?pagina=Inicial">Home</a></li>
			  <li><a href="/ArghhhWeb/ir_para?pagina=Bandas">Bandas</a></li>
			  <li class="current_page_item"><a href="/ArghhhWeb/ir_para?pagina=Pessoas">Pessoas</a></li>
			  <li><a href="/ArghhhWeb/ir_para?pagina=Ranking">Ranking</a></li>
			  <li><a href="/ArghhhWeb/ir_para?pagina=Links">Links</a></li>
			  <li><a href="/ArghhhWeb/ir_para?pagina=Contato">Contato</a></li>
		  </ul>
		</div>
		<!-- end #menu -->
		<div id="page">
			<div id="content">
				<div class="post">
					<h1 class="title">Pesquisa de Pessoas</h1>
					<p class="meta">&bull; &nbsp;Usu&aacute;rios J&aacute; Cadastrados. &bull; </p>
					<div class="entry">
                                            <form action="/ArghhhWeb/ir_para" method="post">
                                            Buscar:<input  type="text" id="busca-text" name="busca" size="40" maxlength="128" />
                                            &nbsp;&nbsp;
                                            <select id="campos" name="tipo">
                                            <option value="tudo">Todos</option>
                                            <option value="usuario">Usuário</option>
                                            <option value="integrante">Integrantes</option>
                                            </select>
                                            &nbsp;&nbsp;
                                            <input type="submit" name="botao" value="buscar"/>
                                            </form>
                                        </div>
                                </div>
                        </div>
                 <table style="width: 60%;">
                 <jsp:useBean id="pessoas" scope="request" type="java.util.Map<String, arghhh.implementaçao.modelo.Fa>" />
                <%if(pessoas.size() != 0){%>
                    <tbody style="text-align: center;">
                        <tr>
                        <%Object[] keys = pessoas.keySet().toArray();%>
                        <%for(int i = 0;i < pessoas.size();i++){%>
                            <%if(i+1%4 == 0){%>
                                <tr>
                                    <td>
                                    <img src="images/foto_usuario_peq.jpg" /> <br/>
                                    <a href="/ArghhhWeb/ir_para?pagina=visitarUsuario?login=<%=arghhh.servlet.ServletArghhh.sistema.buscarFa((String) keys[i]).getLogin()%>">
                                    <%=arghhh.servlet.ServletArghhh.sistema.buscarFa((String) keys[i]).getNome()%>
                                    </a>
                                    </td>
                                </tr>
                            <%continue;}%>
                            <td>
                                <img src="images/foto_usuario_peq.jpg" /> <br/>
                                    <a href="/ArghhhWeb/ir_para?pagina=visitarUsuario?login=<%=arghhh.servlet.ServletArghhh.sistema.buscarFa((String) keys[i]).getLogin()%>">
                                    <%=arghhh.servlet.ServletArghhh.sistema.buscarFa((String) keys[i]).getNome()%>
                                    </a>
                            </td>
                        <%}%>
                        </tr>
                    </tbody>
                <%}%>
                </table>
                </tbody>
			<!-- end #content -->
			<div id="barra">
				<div id="sidebar">
					<ul>
						<li>
							<h2>Pesquisa Avançada</h2>
							<br/>
                            <br/>
						</li>

					</ul>
				</div>
			</div>
			<!-- end #sidebar -->
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #page -->
		<div id="footer">
			<p>Copyright (c) 2009 Projeto de Desenvolvimento de Sistema Web, Grupo 6</p>
		</div>
		<!-- end #footer -->
	</body>
</html>
